package com.dzk.cp.c11x5.service.impl;

import java.util.List;

import com.dzk.cp.c11x5.dao.R5Dao;
import com.dzk.cp.c11x5.pojo.R5;
import com.dzk.cp.c11x5.service.R5Service;

public abstract class R5ServiceImpl<T extends R5> implements R5Service<T> {

	@Override
	public T getLastR5() {
		return getR5Dao().getLastR5();
	}

	@Override
	public T getR5ByQs(String issue) {
		return getR5Dao().getR5ByQs(issue);
	}
	
	@Override
	public List<T> query(String date) {
		return getR5Dao().query(date, date);
	}
	
	@Override
	public List<T> query(String fromDate, String toDate) {
		return getR5Dao().query(fromDate, toDate);
	}
	
	@Override
	public List<T> queryLatest(int num) {
		return getR5Dao().queryLatest(num);
	}
	
	protected abstract R5Dao<T> getR5Dao();

}
